package com.coding365.rpcprovider.service;

import com.coding365.rpcprovider.handler.UserServiceHandler;
import com.lagou.entity.JSONSerializer;
import com.lagou.entity.RpcDecoder;
import com.lagou.entity.RpcEncoder;
import com.lagou.entity.RpcRequest;
import com.lagou.service.IUserService;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.string.StringEncoder;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {




    //将来客户单要远程调用的方法
    public String sayHello(String msg) {
        System.out.println("are you ok ? "+msg);
        return "服务器返回数据 : "+msg;
    }

}
